Optimal. Leaf size=19 \[ a x-\frac {i a \log (\cos (c+d x))}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 19, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 1, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.077, Rules used = {3556}
\begin {gather*} a x-\frac {i a \log (\cos (c+d x))}{d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3556
Rubi steps
\begin {align*} \int (a+i a \tan (c+d x)) \, dx &=a x+(i a) \int \tan (c+d x) \, dx\\ &=a x-\frac {i a \log (\cos (c+d x))}{d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 19, normalized size = 1.00 \begin {gather*} a x-\frac {i a \log (\cos (c+d x))}{d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.03, size = 23, normalized size = 1.21
method | result | size |
default | \(a x +\frac {i a \ln \left (1+\tan ^{2}\left (d x +c \right )\right )}{2 d}\) | \(23\) |
norman | \(a x +\frac {i a \ln \left (1+\tan ^{2}\left (d x +c \right )\right )}{2 d}\) | \(23\) |
derivativedivides | \(\frac {a \left (\frac {i \ln \left (1+\tan ^{2}\left (d x +c \right )\right )}{2}+\arctan \left (\tan \left (d x +c \right )\right )\right )}{d}\) | \(28\) |
risch | \(-\frac {i a \ln \left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right )}{d}-\frac {2 a c}{d}\) | \(28\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 17, normalized size = 0.89 \begin {gather*} a x + \frac {i \, a \log \left (\sec \left (d x + c\right )\right )}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.36, size = 18, normalized size = 0.95 \begin {gather*} -\frac {i \, a \log \left (e^{\left (2 i \, d x + 2 i \, c\right )} + 1\right )}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.07, size = 24, normalized size = 1.26 \begin {gather*} - \frac {i a \log {\left (e^{2 i d x} + e^{- 2 i c} \right )}}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.47, size = 18, normalized size = 0.95 \begin {gather*} a x - \frac {i \, a \log \left ({\left | \cos \left (d x + c\right ) \right |}\right )}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 3.26, size = 17, normalized size = 0.89 \begin {gather*} \frac {a\,\ln \left (\mathrm {tan}\left (c+d\,x\right )+1{}\mathrm {i}\right )\,1{}\mathrm {i}}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________